#ifndef _MY_IO_MACROS_H_
#define _MY_IO_MACROS_H_


#ifdef _VSCODE

// 仅在 VSCODE 中消除错误用
#define __IO_REG16(NAME, ADDRESS, ATTRIBUTE)              \
        unsigned short NAME;

#else
/*---------------------------------------------
 * Define NAME as an I/O 16 bit reg
 * Access of 16 bit reg:  NAME
 *--------------------------------------------*/
#define __IO_REG16(NAME, ADDRESS, ATTRIBUTE)              \
        __near __no_init volatile ATTRIBUTE unsigned short NAME @ ADDRESS;
        
#endif


#endif
